package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.Identifier;

/**
 * @author Bright Lee
 */
public final class DropRoleStatement implements SqlSchemaManipulationStatement {

    private int beginIndex;
    private int endIndex;
    private Identifier roleName;

    public DropRoleStatement(int beginIndex, Identifier roleName) {
        this.beginIndex = beginIndex;
        this.endIndex = roleName.getEndIndex();
        this.roleName = roleName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getRoleName() {
        return roleName;
    }

}
